Read input from the user